<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>

<%
	request.setAttribute("title","亲属详情");
	request.setAttribute("modelConfigPath", "rel");
%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<style type="text/css">
</style>

<t:panel cssClass="panel-flat form-detailed form-sm" customBody="true" customHead="true">
	<div class="detailed-navbar-content panel-body">
		<t:form commandName="relative" action="/admin/rel/relative/save" method="post" cssClass="form-horizontal">
			<div class="hide">
				<t:hidden path="relativeId"/>
			</div>
			<t:formgroup>
				<t:label path="relative_firstName" cssClass="col-sm-2" />
				<t:input path="relative_firstName" colClass="col-sm-4" />
				<t:label path="relative_lastName" cssClass="col-sm-2" />
				<t:input path="relative_lastName" colClass="col-sm-4"/>
			</t:formgroup>
			<t:formgroup>
				<t:label path="relative_province" cssClass="col-sm-2" />
				<t:input path="relative_province" colClass="col-sm-4" />
				
			</t:formgroup>
			<t:formgroup>
				<t:label path="relative_birthday" cssClass="col-sm-2" />
				<t:date path="relative_birthday" colClass="col-sm-4"/>
				<t:label path="relative_deathday" cssClass="col-sm-2" />
				<t:date path="relative_deathday" colClass="col-sm-4"/>
			</t:formgroup>
			<t:formgroup>
				<t:label path="relative_job" cssClass="col-sm-2" />
				<t:input path="relative_job" colClass="col-sm-4"/>
				<t:label path="relative_nation" cssClass="col-sm-2" />
				<t:input path="relative_nation" colClass="col-sm-4"/>
			</t:formgroup>
			<t:formgroup>
				<t:label path="relative_buryAddress" cssClass="col-sm-2" />
				<t:input path="relative_buryAddress" colClass="col-sm-10"/>
			</t:formgroup>
			<t:formgroup>
				<t:label path="relative_information" cssClass="col-sm-2" />
				<t:textarea path="relative_information" rows="5" colClass="col-sm-10" />
			</t:formgroup>
		</t:form>
	</div>
	<t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()" cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
</t:panel>

<script type="text/javascript">
	function saveData(){
		if (!$("form:first").valid()){
			return;
		}
		$("form:first").submit();
	}	
</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
